package com._54programer.ws;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class IPUtils {

	public static String getLocalIp() {
		try {
			return InetAddress.getLocalHost().getHostAddress();
		} catch (UnknownHostException e) {
			return "127.0.0.1";
		}
	}
}
